<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->
<script type="text/html" id="addonsDemo">
    <div class="layui-btn-container">
        {foreach name="right_buttons" key="key" item="vo"}
            {if $vo.title == '安装'}
                {{#  if(d.install == '2'){ }}
                <a class="{$vo.class} right_button" lay-event="{$vo.json}">更新</a>
                {{#  } else if(d.install == '0') { }}
                <a class="{$vo.class} right_button" lay-event="{$vo.json}">安装</a>
                {{#  } else { }}
                {{#  } }}
            {else}
                {{#  if(d.install != '0'){ }}
                <a class="{$vo.class} right_button" lay-event="{$vo.json}">{$vo.title}</a>
                {{#  } }}
            {/if}
        {/foreach}
    </div>
</script>
